/**
 * 
 */
package Interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Set;

/**
 * @author Barak & Ron
 *
 */
public interface WorkerRegister extends Remote {
	/**
	 * Through This function a worker registers in the server.
	 * @param name The unique name of the new worker.
	 * @param resources The resources the worker have.
	 * @throws RemoteException 
	 */
	void register(String name,Set<String> resources) throws RemoteException;
}
